home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Standards 1994 January / InfoMagic Standards - January 1994.iso / ccitt / 1988 / troff / 3_4_07.tro < prev    next >
Text File  |  1991-12-12  |  14KB  |  626 lines

  1. .rs
  2. .\" Troff code generated by TPS Convert from ITU Original Files
  3. .\"                 Not Copyright ( c) 1991 
  4. .\"
  5. .\" Assumes tbl, eqn, MS macros, and lots of luck.
  6. .TA 1c 2c 3c 4c 5c 6c 7c 8c
  7. .ds CH
  8. .ds CF
  9. .EQ
  10. delim @@
  11. .EN
  12. .nr LL 40.5P
  13. .nr ll 40.5P
  14. .nr HM 3P
  15. .nr FM 6P
  16. .nr PO 4P
  17. .nr PD 9p
  18. .po 4P
  19.  
  20. .rs
  21. \v | 5i'
  22. .IP
  23. \fB7.2\fR     \fBCoding\ of\ analogue\ signals\ by\ methods\ other\ than\ PCM\fR 
  24. .sp 1P
  25. .RT
  26. .sp 2P
  27. .LP
  28. \fBRecommendation\ G.721\fR 
  29. .RT
  30. .sp 2P
  31. .ce 1000
  32. \fB32\ kbit/s\ \fR \fBADAPTIVE\ DIFFERENTIAL\ PULSE\ CODE\fR 
  33. .EF '%    Fascicle\ III.4\ \(em\ Rec.\ G.721''
  34. .OF '''Fascicle\ III.4\ \(em\ Rec.\ G.721    %'
  35. .ce 0
  36. .sp 1P
  37. .ce 1000
  38. \fBMODULATION\ (ADPCM)\fR 
  39. .FS
  40. This
  41. Recommendation G.721 completely replaces the text of Recommendation\ G.721
  42. published in Fascicle\ III.3 of the \fIRed Book\fR . It should be noted 
  43. that systems designed in accordance with the present Recommendation will 
  44. not be compatible with systems designed in accordance with the \fIRed Book\fR 
  45. version. 
  46. .FE
  47. .ce 0
  48. .sp 1P
  49. .ce 1000
  50. \fI(Melbourne, 1988)\fR 
  51. .sp 9p
  52. .RT
  53. .ce 0
  54. .sp 1P
  55. .LP
  56. \fB1\fR     \fBGeneral\fR 
  57. .sp 1P
  58. .RT
  59. .PP
  60. The characteristics below are recommended for the conversion of a 64\ kbit/s 
  61. A\(hylaw or \(*m\(hylaw PCM channel to and from a 32\ kbit/s channel. The 
  62. conversion is applied to the PCM bit stream using an ADPCM transcoding
  63. technique. The relationship between the voice frequency signals and the PCM
  64. encoding/decoding laws is fully specified in Recommendation\ G.711.
  65. .PP
  66. Paragraphs 1.1 and 1.2 of this Recommendation provide an outline
  67. description of the ADPCM transcoding algorithm, \(sc\(sc\ 2 and\ 3 provide the
  68. principles and functional descriptions of the ADPCM encoding and decoding
  69. algorithms respectively, whilst \(sc\ 4 is the precise specification for the
  70. algorithm computations. Networking aspects and digital test sequences are
  71. addressed in Apendices\ I and\ II respectively to this Recommendation.
  72. .PP
  73. Simplified block diagrams of both the ADPCM encoder and decoder are
  74. shown in Figure\ 1/G.721.
  75. .PP
  76. In \(sc 4, each sub\(hyblock in the encoder and decoder is precisely defined 
  77. using one particular logical sequence. If other methods of computation 
  78. are 
  79. used, extreme care should be taken to ensure that they yield \fIexactly\fR 
  80. the same value for the output processing variables. Any further departures 
  81. from the 
  82. processes detailed in \(sc\ 4 will incur performance penalties which may be
  83. severe.
  84. .PP
  85. \fINote 1\fR \ \(em\ For the time being, the 32 kbit/s ADPCM algorithm 
  86. defined in this Recommendation is intended for transmission purposes since 
  87. switching 
  88. applications at this bit rate are a subject for further study by the CCITT.
  89. .PP
  90. \fINote 2\fR \ \(em\ Prior to the definition of this Recommendation, other 32
  91. kbit/s ADPCM algorithms of similar performance have been incorporated in
  92. equipment designs and used in national telecommunications networks.
  93. .PP
  94. \fINote 3\fR \ \(em\ In the short term, due to the limited availability of
  95. 32\ kbit/s ADPCM equipment, the use of 32\ kbit/s ADPCM in the international
  96. network, when requested by one of the Administrations concerned, will require 
  97. bilateral and/or multilateral agreement. 
  98. .PP
  99. \fINote 4\fR \ \(em\ Signalling and multiplexing considerations are beyond 
  100. the scope of this Recommendation (see for example Recommendation\ G.761). 
  101. .RT
  102. .sp 1P
  103. .LP
  104. 1.1
  105.     \fIADPCM encoder\fR 
  106. .sp 9p
  107. .RT
  108. .PP
  109. Subsequent to the conversion of the A\(hylaw or \(*m\(hylaw PCM input signal 
  110. to uniform PCM, a difference signal is obtained, by subtracting an estimate 
  111. of the input signal from the input signal itself. An adaptative 15\(hylevel 
  112. quantizer is used to assign four binary digits to the value of the difference 
  113. signal for transmission to the decoder. An inverse quantizer produces a 
  114. quantized 
  115. difference signal from these same four binary digits. The 
  116. signal
  117. estimate
  118. is added to this 
  119. quantized difference signal
  120. to produce
  121. the reconstructed
  122. .PP
  123. version of the input signal. Both the reconstructed signal and the quantized
  124. difference signal are operated upon by an 
  125. adaptive predictor
  126. which
  127. produces the estimate of the input signal, thereby completing the 
  128. feedback  loop
  129. .
  130. .RT
  131. .LP
  132. .sp 1
  133. .bp
  134. .sp 1P
  135. .LP
  136. 1.2
  137.     \fIADPCM decoder\fR 
  138. .sp 9p
  139. .RT
  140. .PP
  141. The decoder includes a structure identical to the feedback portion of the 
  142. encoder, together with a uniform PCM to A\(hylaw or \(*m\(hylaw conversion 
  143. and a 
  144. synchronous coding adjustment
  145. .
  146. .PP
  147. The synchronous coding adjustment prevents cumulative distortion
  148. occurring on synchronous tandem codings (ADPCM\(hyPCM\(hyADPCM,\ etc. digital
  149. connections) under certain conditions (see \(sc\ 3.7). The synchronous coding
  150. adjustment is achieved by adjusting the 
  151. PCM output codes
  152. in a manner
  153. which attempts to eliminate 
  154. quantizing distortion
  155. in the next 
  156. ADPCM encoding stage
  157. .
  158. .RT
  159. .LP
  160. .rs
  161. .sp 37P
  162. .ad r
  163. \fBFigure 1/G.721, p.\fR 
  164. .sp 1P
  165. .RT
  166. .ad b
  167. .RT
  168. .sp 2P
  169. .LP
  170. \fB2\fR     \fBADPCM encoder\fR \fBprinciples\fR 
  171. .sp 1P
  172. .RT
  173. .PP
  174. Figure 2/G.721 is a block schematic of the encoder. For each
  175. variable to be described, \fIk\fR \ is the 
  176. sampling index
  177. and samples are
  178. taken at 125\ \(*ms intervals. A fundamental description of each block is given
  179. below in \(sc\(sc\ 2.1 to\ 2.8.
  180. .bp
  181. .RT
  182. .LP
  183. .rs
  184. .sp 25P
  185. .ad r
  186. \fBFigure 2/G.721, p.\fR 
  187. .sp 1P
  188. .RT
  189. .ad b
  190. .RT
  191. .sp 1P
  192. .LP
  193. 2.1
  194.     \fIInput PCM format conversion\fR 
  195. .sp 9p
  196. .RT
  197. .PP
  198. This block converts the input signal \fIs\fR (\fIk\fR ) from A\(hylaw or 
  199. \(*m\(hylaw PCM to a uniform PCM signal \fIs\fR\d1\u(\fIk\fR ). 
  200. .RT
  201. .sp 1P
  202. .LP
  203. 2.2
  204.     \fIDifference signal\fR \fIcomputation\fR 
  205. .sp 9p
  206. .RT
  207. .PP
  208. This block calculates the difference signal \fId\fR (\fIk\fR ) from the 
  209. uniform PCM signal \fIs\fR\d\fIl\fR\u(\fIk\fR ) and the signal 
  210. estimate \fIs\fR\d\fIe\fR\u(\fIk\fR ):
  211. \v'6p'
  212. .RT
  213. .ce 1000
  214. \fId\fR (\fIk\fR ) = \fIs
  215. \dl\u\fR (\fIk\fR ) \(em
  216. \fIs
  217. \de\u\fR (\fIk\fR )
  218. .ce 0
  219. .ad r
  220. (2\(hy1)
  221. .ad b
  222. .RT
  223. .LP
  224. .sp 1
  225. .sp 1P
  226. .LP
  227. 2.3
  228.     \fIAdaptive quantizer\fR 
  229. .sp 9p
  230. .RT
  231. .PP
  232. A 15\(hylevel non\(hyuniform adaptive quantizer is used to quantize the 
  233. difference signal \fId\fR (\fIk\fR ). Prior to quantization, \fId\fR (\fIk\fR 
  234. ) is 
  235. converted to
  236. a base\ 2 logarithmic representation and scaled by \fIy\fR (\fIk\fR ) which is
  237. computed by
  238. the scale factor adaptation block. The normalized input/output characteristic 
  239. (infinite precision values) of the quantizer is given in Table\ 1/G.721. 
  240. Four 
  241. binary digits are used to specify the quantized level representing
  242. \fId\fR (\fIk\fR )
  243. (three for the magnitude and one for the sign). The 4\(hybit quantizer output
  244. \fII\fR (\fIk\fR ) forms the 32\ kbit/s output signal; it is also fed to 
  245. the inverse adaptive quantizer, the adaptation speed control and the 
  246. quantizer scale
  247. factor
  248. adaptation blocks.
  249. .RT
  250. .sp 1P
  251. .LP
  252. 2.4
  253.     \fIInverse adaptive quantizer\fR 
  254. .sp 9p
  255. .RT
  256. .PP
  257. A quantized version \fId\fR\d\fIq\fR\u(\fIk\fR ) of the difference signal 
  258. is produced by scaling, using \fIy\fR (\fIk\fR ), specific values selected 
  259. from the 
  260. normalized quantizing characteristic given in Table\ 1/G.721 and then
  261. transforming the result from the logarithmic domain.
  262. .bp
  263. .RT
  264. .ce
  265. \fBH.T. [T1.721]\fR 
  266. .ce
  267. TABLE\ 1/G.721
  268. .ce
  269. \fBQuantizer normalized input/output characteristic\fR 
  270. .ps 9
  271. .vs 11
  272. .nr VS 11
  273. .nr PS 9
  274. .TS
  275. center box;
  276. cw(72p) | cw(30p) | cw(72p) .
  277.  {
  278. Normalized quantizer input range
  279. log
  280.  | fId\fR
  281. (\fIk\fR
  282.  | (em\fIy\fR
  283. (\fIk\fR
  284. )
  285.  }    | fII\fR (\fIk\fR  |     {
  286. Normalized quantizer output
  287. log
  288.  | fId\fR
  289. \fIq\fR
  290. (\fIk\fR
  291.  | (em\fIy\fR
  292. (\fIk\fR
  293.  }
  294. _
  295. .T&
  296. cw(72p) | cw(30p) | cw(72p) .
  297. [3.12,\ +\(if)    7    3.32\ 
  298. .T&
  299. cw(72p) | cw(30p) | cw(72p) .
  300. [2.72,\ \ 3.12)    6    2.91\ 
  301. .T&
  302. cw(72p) | cw(30p) | cw(72p) .
  303. [2.34,\ \ 2.72)    5    2.52\ 
  304. .T&
  305. cw(72p) | cw(30p) | cw(72p) .
  306. [1.91,\ \ 2.34)    4    2.13\ 
  307. .T&
  308. cw(72p) | cw(30p) | cw(72p) .
  309. [1.38,\ \ 1.91)    3    1.66\ 
  310. .T&
  311. cw(72p) | cw(30p) | cw(72p) .
  312. [0.62,\ \ 1.38)    2    1.05\ 
  313. .T&
  314. cw(72p) | cw(30p) | cw(72p) .
  315. [\(em0.98,\ 0.62)    1    0.031
  316. .T&
  317. cw(72p) | cw(30p) | cw(72p) .
  318. (\(em\(if,\ \(em0.98)    0    \(em\(if
  319. .TE
  320. .LP
  321. \fINote\fR
  322. \ \(em\ The convention used here is that \*Q[\*U indicates that the endpoint
  323. value is included in the range, \*Q)\*U indicates that the endpoint value is
  324. excluded from the range.
  325. .nr PS 9
  326. .RT
  327. .ad r
  328. \fBTable 1/G.721 [T1.721], p.\fR 
  329. .sp 1P
  330. .RT
  331. .ad b
  332. .RT
  333. .sp 1P
  334. .LP
  335. 2.5
  336.     \fIQuantizer scale factor adaptation\fR 
  337. .sp 9p
  338. .RT
  339. .PP
  340. This block computes \fIy\fR (\fIk\fR ), the scaling factor for the
  341. quantizer and the inverse quantizer. The inputs are the 4\(hybit quantizer 
  342. output \fII\fR (\fIk\fR ) and the adaptation speed control parameter \fIa\fR\d\fIl\fR\u(\fIk\fR 
  343. ). 
  344. .PP
  345. The basic principle used in scaling the quantizer is 
  346. bimodal
  347. adaptation
  348. :
  349. .RT
  350. .LP
  351.     \(em
  352.     fast for signals (e.g. speech) that produce difference
  353. signals with large fluctuations;
  354. .LP
  355.     \(em
  356.     slow for signals (e.g. voiceband data, tones) that produce
  357. difference signals with small fluctuations.
  358. .PP
  359. The speed of adaptation is controlled by a combination of fast and slow 
  360. scale factors. 
  361. .PP
  362. The 
  363. fast (unlocked) scale factor
  364. \fIy\fR\d\fIu\fR\u(\fIk\fR ) is
  365. recursively computed in the base\ 2 logarithmic domain from the resultant
  366. logarithmic scale factor \fIy\fR (\fIk\fR ):
  367. \v'6p'
  368. .RT
  369. .ce 1000
  370. \fIy
  371. \du\u\fR (\fIk\fR ) = (1 \(em 2
  372. \u\(em5
  373. \d)\fIy\fR (\fIk\fR ) +
  374. 2
  375. \u\(em5
  376. \d\fIW\fR [\fII\fR (\fIk\fR )],
  377. .ce 0
  378. .ad r
  379. (2\(hy2)
  380. .ad b
  381. .RT
  382. .LP
  383. .sp 1
  384. where \fIy
  385. \du\u\fR (\fIk\fR ) is limited by 1.06 \(= \fIy
  386. \du\u\fR (\fIk\fR ) \(=  10.00.
  387. .PP
  388. The discrete function \fIW\fR (\fII\fR ) is defined as follows
  389. (infinite precision values):
  390. .ce
  391. \fBH.T. [T2.721]\fR 
  392. .ps 9
  393. .vs 11
  394. .nr VS 11
  395. .nr PS 9
  396. .TS
  397. center box;
  398. cw(24p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) .
  399. | (k |    7    6    5    4    3    2    1    0
  400. _
  401. .T&
  402. cw(24p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) .
  403. W(I)    70.13    22.19    12.38    7.00    4.00    2.56    1.13    \(em0.75
  404. .TE
  405. .nr PS 9
  406. .RT
  407. .ad r
  408. \fBTable [T2.721], p.\fR 
  409. .sp 1P
  410. .RT
  411. .ad b
  412. .RT
  413. .PP
  414. The factor (1 \(em 2\uD\dlF261\u5\d) introduces finite memory into the
  415. adaptive process so that the states of the encoder and decoder converge
  416. following transmission errors.
  417. .bp
  418. .PP
  419. The 
  420. slow (locked) scale factor
  421. \fIy\fR\d\fIl\fR\u(\fIk\fR ) is derived from \fIy\fR\d\fIu\fR\u(\fIk\fR 
  422. ) with a low pass filter operation: 
  423. \v'6p'
  424. .RT
  425. .ce 1000
  426. \fIy
  427. \dl\u\fR (\fIk\fR ) = (1 \(em 2
  428. \u\(em6
  429. \d)\fIy
  430. \dl\u\fR (\fIk\fR \(em 1) +
  431. 2
  432. \u\(em6
  433. \d\fIy
  434. \du\u\fR (\fIk\fR )
  435. .ce 0
  436. .ad r
  437. (2\(hy3)
  438. .ad b
  439. .RT
  440. .PP
  441. .sp 1
  442. The fast and slow scale factors are then combined to form the
  443. resultant scale factor:
  444. \v'6p'
  445. .ce 1000
  446. \fIy\fR (\fIk\fR ) = \fIa
  447. \dl\u\fR (\fIk\fR )\fIy
  448. \du\u\fR (\fIk\fR \(em 1) + [1 \(em
  449. \fIa
  450. \dl\u\fR (\fIk\fR )]\fIy
  451. \dl\u\fR (\fIk\fR \(em 1),
  452. .ce 0
  453. .ad r
  454. (2\(hy4)
  455. .ad b
  456. .RT
  457. .LP
  458. .sp 1
  459. .LP
  460. where 0 \(= \fIa
  461. \dl\u\fR (\fIk\fR ) \(= 1 (see \(sc 2.6).
  462. .sp 1P
  463. .LP
  464. 2.6
  465.     \fIAdaptation speed control\fR 
  466. .sp 9p
  467. .RT
  468. .PP
  469. The controlling parameter \fIa\fR\d\fIl\fR\u(\fIk\fR ) can assume values 
  470. in the range [0,\ 1]. It tends towards unity for speech signals and towards 
  471. zero 
  472. for voiceband data signals and tones. It is derived from a measure of the
  473. rate\(hyof\(hychange of the difference signal values.
  474. .PP
  475. Two measures of the average magnitude of \fII\fR (\fIk\fR ) are
  476. computed:
  477. \v'6p'
  478. .RT
  479. .ce 1000
  480. \fId
  481. \dms
  482. \u\fR (\fIk\fR ) = (1 \(em 2
  483. \u\(em5
  484. \d)\fId
  485. \dms
  486. \u\fR (\fIk\fR \(em 1)  + 2
  487. \u\(em5
  488. \d\fIF\fR [\fII\fR (\fIk\fR )],
  489. .ce 0
  490. .ad r
  491. (2\(hy5)
  492. .ad b
  493. .RT
  494. .LP
  495. and
  496. .ce 1000
  497. \fId
  498. \dml
  499. \u\fR (\fIk\fR ) = (1 \(em 2
  500. \u\(em7
  501. \d)\fId
  502. \dml
  503. \u\fR (\fIk\fR \(em 1)  + 2
  504. \u\(em7
  505. \d\fIF\fR [\fII\fR (\fIk\fR )],
  506. .ce 0
  507. .ad r
  508. (2\(hy6)
  509. .ad b
  510. .RT
  511. .LP
  512. .sp 1
  513. where \fIF\fR [\fII\fR (\fIk\fR )] is defined by
  514. .ce
  515. \fBH.T. [T3.721]\fR 
  516. .ps 9
  517. .vs 11
  518. .nr VS 11
  519. .nr PS 9
  520. .TS
  521. center box;
  522. cw(24p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) .
  523. | (k |    7    6    5    4    3    2    1    0
  524. _
  525. .T&
  526. cw(24p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) | cw(18p) .
  527. F[I(k)]      7    3    1    1    1    0    0    0
  528. .TE
  529. .nr PS 9
  530. .RT
  531. .ad r
  532. \fBTable [T3.721], p.\fR 
  533. .sp 1P
  534. .RT
  535. .ad b
  536. .RT
  537. .LP
  538. \fId\fR\d\fIm\fR\\d\fIs\fR\u(\fIk\fR ) is thus a relatively short term 
  539. average of 
  540. \fIF\fR [\fII\fR (\fIk\fR )]
  541. and \fId\fR\d\fIm\fR\\d\fIl\fR\u(\fIk\fR ) is a relatively long term average of
  542. \fIF\fR [\fII\fR (\fIk\fR )].
  543. .PP
  544. Using these two averages, the variable \fIa\fR\d\fIp\fR\u(\fIk\fR ) is
  545. defined:
  546. \v'6p'
  547. .LP
  548. \fIa
  549. \dp\u\fR (\fIk\fR ) = 
  550. \ (1 \(em
  551. 2
  552. \u\(em4
  553. \d)\fIa
  554. \dp\u\fR (\fIk\fR \(em 1) + 2
  555. \u\(em3
  556. \d,
  557. \ if 
  558. @ left | fId~\dms~\u\fR (\fIk\fR ) \(em~\fId~\dml~\u\fR (\fIk\fR ) right | @ 
  559. \(>=" 2
  560. \u\(em3
  561. \d\fId
  562. \dml
  563. \u\fR (\fIk\fR )
  564. \fIa
  565. \dp\u\fR (\fIk\fR ) = 
  566. \ (1 \(em
  567. 2
  568. \u\(em4
  569. \d)\fIa
  570. \dp\u\fR (\fIk\fR \(em 1) + 2
  571. \u\(em3
  572. \d, \ if \fIy\fR (\fIk\fR ) < 3
  573. \fIa
  574. \dp\u\fR (\fIk\fR ) = 
  575. \ (1 \(em
  576. 2
  577. \u\(em4
  578. \d)\fIa
  579. \dp\u\fR (\fIk\fR \(em 1) + 2
  580. \u\(em3
  581. \d,
  582. \ if \fIt\fR \fI\d\fId\fR\u(\fIk\fR ) = 1
  583. (2\(hy7)
  584. \fIa
  585. \dp\u\fR (\fIk\fR ) =
  586. \ 1,
  587. if \fIt\fR \fI\d\fIr\fR\u(\fIk\fR ) = 1
  588. \fIa
  589. \dp\u\fR (\fIk\fR ) = 
  590. \ (1 \(em
  591. 2
  592. \u\(em4
  593. \d)\fIa
  594. \dp\u\fR (\fIk\fR \(em 1),
  595. + 2
  596. \u\(em3
  597. \d \ 
  598. otherwise
  599. .PP
  600. Thus, \fIa\fR\d\fIp\fR\u(\fIk\fR ) tends towards the value 2 if the difference 
  601. between \fId\fR\d\fIm\fR\\d\fIs\fR\u(\fIk\fR ) and \fId\fR\d\fIm\fR\\d\fIl\fR\u(\fIk\fR 
  602. ) is large (average 
  603. magnitude of
  604. \fII\fR (\fIk\fR ) changing) and \fIa\fR\d\fIp\fR\u(\fIk\fR ) tends towards 
  605. the value\ 0 if 
  606. the difference
  607. is small (average magnitude of \fII\fR (\fIk\fR ) relatively constant).
  608. \fIa\fR\d\fIp\fR\u(\fIk\fR )
  609. also tends towards\ 2 for an idle channel (indicated by
  610. \fIy\fR (\fIk\fR )\ <\ 3) or partial band signals (indicated by
  611. \fIt\fR\d\fId\fR\u(\fIk\fR )\ =\ 1 as described in \(sc\ 2.8). Note that 
  612. \fIa\fR\d\fIp\fR\u(\fIk\fR ) is set to\ 1 upon detection of a 
  613. partial band signal transition
  614. (indicated  by \fIt\fR\d\fIr\fR\u(\fIk\fR )\ =\ 1, see \(sc\ 2.8).
  615. .LP
  616. \fIa
  617. \dp\u\fR (\fIk\fR \(em 1) is then limited to yield \fIa
  618. \dl\u\fR (\fIk\fR )
  619. used in Equation (2\(hy4) above:
  620. \v'6p'
  621. .ce 1000
  622. \fIa
  623. [Formula Deleted]
  624.  
  625.